package com.wx.app.ui.view;

import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.Window;

import com.example.administrator.newemptyapplication.R;

public class PopWindow extends Dialog {

    public PopWindow(Context context) {
        super(context);
        addContentView();
    }

    public PopWindow(Context context, int themeResId) {
        super(context, themeResId);
        addContentView();
    }

    private void addContentView() {
        setContentView(R.layout.dialog_buy);
    }


    @Override
    public void show() {
        Window window = getWindow();
        window.setGravity(Gravity.BOTTOM);
        super.show();

    }
}
